package
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class Test extends Sprite
	{
		public function Test()
		{
			super();
			var sp:Sprite = new Sprite();
			sp.graphics.beginFill(0x000000);
			sp.graphics.drawRect(0, 0, 100, 100);
			sp.graphics.endFill();
		
			this.addChild(sp);
			
			sp.x =  200;
			sp.y = 200;
			
			
			
			sp.rotationZ = 10;
			
			sp.addEventListener(Event.ENTER_FRAME, gogosing);
		}
		
		private function gogosing(e:Event):void
		{
			var sp:Sprite = e.currentTarget as Sprite;
			sp.rotationZ += 1;
			sp.rotationY += 1;
		}
		
	}
}